module FunctionsHelper
  def function_name_value
    if action_name == "show"
      h @function.name 
    else
      text_field :function, :name 
    end
  end

  def function_url_value
    if action_name == "show"
      h @function.url
    else
      text_field :function, :url
    end
  end
end
